package com.gooluke.user.enums;

import com.gooluke.common.enums.BasicError;
import com.gooluke.user.exception.BusinessException;
import lombok.Getter;

/**
 * @author gooluke
 * description
 * datetime 2025-03-29 1:23
 */
@Getter
public enum UserException implements BasicError {

    BUSINESS(500, "业务异常", BusinessException.class),
    ;

    private final int code;
    private final String message;
    private final Class<? extends RuntimeException> exception;

    UserException(int code, String message, Class<? extends RuntimeException> exception) {
        this.code = code;
        this.message = message;
        this.exception = exception;
    }


}
